import React from 'react'
import ReactDOM from 'react-dom'

import App from './App.jsx'
// 入口文件初引入 基于react-redux 的Provider组件
import { Provider } from 'react-redux'
import store from './store'

// 给Provider添加store属性 --- 属性的改变，会引起视图的二次更新
ReactDOM.render(
  <Provider store = { store }>
    <App />
  </Provider>,
  document.getElementById('root')
)
